import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Home from '../page/home/Home.vue'
import Detail from '../page/detail/Detail.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home,
    },
    {
       path: '/detail/:goodId',
       name: 'Detail',
       component: Detail
     }
  ]
})
